package com.example.springboot_manage.repository;

import java.util.List;
import java.util.Map;

public interface BaseRepository {
    <T> List<T> findAll(int startIndex, int pageSize);
    <T> List<T> findCategory();
    int queryAllCount();
    Object findById(Object object);
    int save(Object object);
    int update (Object object);
    int deleteById(Object object);
    int upload(Object object);

    <T> List<T> findBySearchId(Map map);
    int queryCountById(Map map);

    //商家用到的mapper
    <T> List<T> findByCategoryType(int startIndex, int pageSize,Integer categoryType);
    int queryByTypeCount(Integer categoryType);
    Object findCategoryByType(Integer categoryType);
}
